#include <stdint.h>
#include "Execution.h"
#include "EE.h"
#include "../../JRYNES.h"

extern EmulationSettings Settings;

void EXN_Init(){
    EE_Init();
}

int32_t EXN_Execute(int32_t Cycles){
    int32_t RemainingCycles;
    
    if(Settings.ArgumentFlags & AF_GENERATE_ELAPSED_CYCLES_GRAPH)
        CycleTimerSetCPUBusy();
    
    RemainingCycles = EE_Main(Cycles);
    
    if(Settings.ArgumentFlags & AF_GENERATE_ELAPSED_CYCLES_GRAPH)
        CycleTimerClearCPUBusy();
    
    return RemainingCycles;
}
